<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>
<script>
   
        var b = 0;
        var fss = 0;
        var gw = 0;
        var sw = 0;
        var bw = 0;
        var i = 0
        for (var a = 100; a <= 200; a++)
        //外层循环控制循环次数
        {
            for (var w = 2; w < a; w++) //

            {

                if (a % w == 0) {
                    console.log('1')
                } else {
                    fss = gw * 100 + sw * 10 + bw;
                    console.log('2')
                    i++
                    console.log('这是循环次数'+i)
                    if (fss % w == 0) {
                        console.log("3")
                    } else {
                        console.log(fss);
                    }

                }
            }

        }
        console.log(fss);
    
</script>

</html>